package Serialize;

import Lab.Lab2.Student;

import java.io.Serializable;

/**
 * @Description:序列化技术，实现学生对象
 * @Author:AMark
 * @Date: 11/3/2023
 */
public class Students implements Serializable {
    private String name;
    private String department;
    private int age;
    private double score;
    Students(String name, String department, int age, double score) {
        this.name = name;
        this.department = department;
        this.age = age;
        this.score = score;
    }
    void print() {
        System.out.println(name + "\t" + department + "\t" + age + "\t" +score);
    }
}

